#include<stdio.h>
#include<pthread.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
void *run(void *arg)
{
    int i;
    for(;;)
    {
      printf("I am pthread 1\n");
      sleep(1);
    }
}
int main()
{
   int i;
   pthread_t tid = 0;
   if( pthread_create(&tid ,NULL,run,NULL)!= 0)
   {
    exit(0);
   }
   for(;;)
   {
     printf("I am main\n");
     sleep(1);
   }

 //int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *
 //(*start_routine)(void*), void *arg);
  return 0;
}
